import fp from "fastify-plugin";
import fastifyMongodb from "@fastify/mongodb";

export default fp(async (fastify) => {
  fastify.register(fastifyMongodb, {
    // 强制使用新的 URL 解析器
    forceClose: true,
    url: 'mongodb://localhost:27019/a1'
  });
});
